package com.ikun.appointment.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ikun.common.entity.Convention;
import com.ikun.common.entity.ResponseResult;

/**
 * 挂号预约表(Convention)表服务接口
 *
 * @author makejava
 * @since 2024-02-26 10:08:25
 */
public interface ConventionService extends IService<Convention> {


    /**
     * 分页查询
     */
    Page<Convention> findPage(Long current, Long size, Integer userId, Integer state) throws NoSuchFieldException;


    /**
     * 根据id删除
     */
    void deleteById(Integer id);

    /**
     * 根据用户id查询总条数
     */
    Integer findCount(Integer userId,Integer state);


}

